﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EraNet.Common.Files
{
    public class UpLoadFileInfo
    {
        private string fileName;
        /// <summary>
        /// 上传文件名称
        /// </summary>
        public string FileName
        {
            get
            {
                return fileName;
            }
            set
            {
                fileName = value;
            }
        }

        private string filepath;
        /// <summary>
        /// 上传文件路径
        /// </summary>
        public string FilePath
        {
            get
            {
                return filepath;
            }
            set
            {
                filepath = value;
            }
        }

        private string _fileSaveName;
        /// <summary>
        /// 设置保存的文件名
        /// </summary>
        public string FileSaveName
        {
            get
            {
                string rs = _fileSaveName;
                if (string.IsNullOrEmpty(_fileSaveName)) rs = fileName;
                return rs;
            }
            set { _fileSaveName = value; }
        }

        private string fileExtension;
        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string FileExtension
        {
            get
            {
                return fileExtension;
            }
            set
            {

                fileExtension = value;
            }

        }

        //是否上传成功
        private bool _success = false;
        /// <summary>
        /// 文件上传是否成功
        /// </summary>
        public bool Success
        {
            get { return _success; }
            set { _success = value; }
        }
    }
}
